<template>
  <div>
    <div class="left" @click="viewinfo">
      <img src="http://lxb.baidu.com/image/module/20638750_155219_20171215155057.png?t=1513324257288" class="leftimg">
    </div>
    <div class="header" v-show="show">
          <div class="zsmj">
            美国名校招生秘籍<span class="close" @click="viewinfo">X</span>
          </div>
          <div class="middle">
          </div>
          <div class="input">
            <input type="text" placeholder="请输入您的电话号码" class="inputnum">
          </div>
          <div class="butt">
            <button class="rightaway">立即进行免费通话</button>
          </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MenuAlert',
  data () {
    return {
        show:false
    }
  },
  methods:{
    viewinfo:function(){
      this.show =!this.show
    }
  }

}
</script>

<style lang="stylus" scoped>
  @import '~styles/commonstyl.styl'
  .left
    position:fixed
    top:10%
    left:0
    width:2rem
    z-index:1
  .header
    position:fixed
    top:50%
    left:50%
    width:8rem
    z-index:1
    transform:translate(-50%,-50%)
    .input
      width:70%
      margin-left:15%
      position:fixed
      top:30%
      .inputnum
        border-radius .3rem
        width:100%
        padding-left:.3rem
        font-size:.5rem
        line-height:.8rem
     .butt
       width:70%
       margin-left:15%
       position:fixed
       top:70%
       .rightaway
         border-radius .3rem
         width:100%
         padding-left:.3rem
         font-size:.5rem
         line-height:.8rem
         background :#f6bd82
         color:#fff
    .zsmj
      color:#fff
      height:1rem
      line-height:1rem
      text-align:center
      font-size:.46rem
      background:#372929
      .close
        font-size:.4rem
        position :absolute
        right:2%
        color:#f6bd82
        border-radius 50%
        cursor:pointer
    .middle
        background:#372929
        opacity .45
        height:3.5rem

</style>
